package leetcode.code524;

import java.util.List;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution524 implements IDebug {

	public abstract String findLongestWord(String s, List<String> dictionary);

	@Override
	public void debug1() {
		String s = "abpcplea";
		String str = "[\"ale\",\"apple\",\"monkey\",\"plea\"]";
		String e = "apple";
		debug(s, str, e);
	}

	private void debug(String s, String str, String e) {
		List<String> dictionary = HelpDebug.str2liststr(str);
		String r = this.findLongestWord(s, dictionary);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String s = "abpcplea";
		String str = "[\"a\",\"b\",\"c\"]";
		String e = "a";
		debug(s, str, e);
	}

	@Override
	public void debug3() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
